@extends('layouts.email')


@section('content')
<div class="container">
        <div class="row">
            <div class="col-md-10 col-md-offset-1">
                <div class="panel panel-default">
                	@if($data)
                    @foreach($data as $email)
                    <div class="panel-heading">
                    	
                       <a href="{{ url('/email/show',['messageid'=>$email['messageid']]) }}" ><div style="width: 60%;display: table-cell;">标题: {{ $email['title'] }}</div>  <div style="width: 15%;display: table-cell;">发件人: {{ $email['from'] }}</div> <div style="width: 15%;display: table-cell;">发送时间: {{ $email['date'] }}</div>  </a>
                    </div>
                    @endforeach
                    @else
                    空
                    @endif
                </div>
            </div>
        </div>
</div>
@endsection